@import "../../../assets/sass/mixin.scss";
@import "../../../assets/sass/variables.scss";

.free-demo-board p {
  font-size: .7rem;
  line-height: 1.2rem;
}

:host /deep/ {

  .top-menu {
    @include position(absolute, $top: 0, $left: 0, $right: 0);
    display: flex;
    height: $topMenuHeight;
    z-index: 9500;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,.3);
    @include transition(.25s);

    free-dropdown f-header {
      height: 2rem !important;
      font-size: 1rem;
      position: relative;
      cursor: pointer;
      text-align: center;
      display: flex;
      align-items: center;
      border-radius: 50%;
    }
  }

  .left-menu {
    @include position(absolute, $topMenuHeight, '', 0, 0);
    width: $leftMenuWidth;

    .ripple {
      background: rgba(0,0,0,.3);
    }

    .free-accordion-group .accordion-content {
      border: none;
    }
  }

  .aside-header {
    width: $leftMenuWidth;
    display: inline-flex;
    flex: 1 0 auto;
    border-bottom: none;
    @include transition(.25s);
  }

  .aside-header-inner,
  .navbar-header {
    > ul > li > a {
      padding: 0 10px;
    }
  }

  .aside-header-inner {
    display: flex;
    height: $topMenuHeight;
    align-items: center;
    @include transition(.25s);
    width: 100%;


    & > span {
      font-size: 1.2rem;
      color: #fff;

      &.top-logo-mini {
        display: none;
        padding: 0 .75rem;
        font-weight: bold;
      }

      &.top-logo {
        display: block;
      }
    }
  }

  .main-layout-container {
    position: absolute;
    background: #fff;
    left: $leftMenuWidth;
    top: $topMenuHeight;
    bottom: 0;
    right: 0;
    padding: .75rem;
    overflow: hidden;
    overflow-y: auto;
    @include clearfix;
  }

  .left-menu,
  .main-layout-container {
    @include transition(.25s);
  }

  .free-demo-row .free-table .free-table-head {
    background: #f5f5f5;
  }

  .free-demo-row .free-table {
    border: 1px solid #d9d9d9;
  }

  .page-title {
    padding: .75rem .75rem .75rem 0;
  }

  .page-row {
    display: flex;
    justify-content: space-between;
    padding: 0 .75rem;

    .page-tab{
      display: flex;
    }

    & > div {
      padding-left: 0;
      padding-right: 0;
      align-items: center;
      .page-tab {
        display: inline-block;
      }
    }
  }

  .page-current-title {
    font-size: .9rem;
  }

  .page-current-icon {
    font-size: 1rem;
    padding-right: .25rem;
  }

  .navbar-header {
    display: flex;
    height: 100%;
    justify-content: space-between;

    &>ul>li>a {
      height: 2rem;
    }

    .free-dropdown,
    .free-dropdown-header,
    .free-dropdown-header f-header {
      display: flex;
      height: 100%;
      margin: 0;
    }

    .navbar-header-logo {
      display: flex;
      align-items: center;
      width: $leftMenuWidth;
      height: 100%;
      a.logo {
        display: block;
        font-size: 1.25rem;
        text-decoration: none;
        color: #333;
        i {
          padding: 0 .25rem 0 1rem;
          color: #222733;
        }
      }
    }

    .navbar-header-left,
    .navbar-header-left li {
      @include flexbox;
      justify-content: center;
    }

    .navbar-header-right {
      height: 100%;
      margin: 0;
      @include flexbox;
      align-self: flex-end;
      align-items: center;
      text-align: end;

      li {
        list-style: none;
        @include flexbox;
        align-items: center;
        font-size: .75rem;
      }

      f-header img {
        width: 1.5rem;
        height: 1.5rem;
        border-radius: 50%;
      }

      li,
      free-dropdown,
      .free-dropdown,
      .free-dropdown .dropdown {
        height: 100%;
      }

      .free-dropdown-header {
        position: relative;
        outline: none;
        background: transparent;
        border: none;
        padding: 0;
        box-shadow: none;
      }
    }

    .nav-user .free-dropdown-header {
      padding: 0 .75rem;
    }

  }

  .navbar-header,
  .aside-header {
    height: 100%;

    & > ul > li,
    .aside-header-inner > ul >li {
      list-style: none;
      height: 100%;
      @include flexbox;
      align-items: center;
      padding: 0 .25rem;

      a {
        font-size: .75rem;
        position: relative;
        cursor: pointer;
        display: flex;
        align-items: center;

        i {
          font-size: 1rem;
        }

        &:before {
          content: "";
          position: absolute;
          z-index: -1;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background: rgba(0,0,0,.12);
          border-radius: 2px;
          transform: scale(0);
          transition: all .25s;
        }

        &:hover:before {
          transform: scale(1);
        }
      }
    }

    .aside-header-inner li a {
      height: 2rem;
    }
  }

  .left-menu {
    .accordion-item {
      width: 100%;
      position: relative;
    }

    .accordion-toggle,
    .accordion-item {
      background: transparent;
      border: none;
    }

    .accordion-toggle {
      border: none;
      padding: .5rem 0 .5rem .8rem;
      @include transition(.25s);
      cursor: pointer;
    }

    .accordion-toggle i,
    .left-menu-item li i {
      font-size: .8rem;
    }

    .accordion-toggle .accordion-toggle-title,
    .left-menu-item li .accordion-toggle-title {
      padding-left: 1rem;
    }

    li free-accordion-group  {
      .accordion-toggle .accordion-toggle-title {
        padding-left: 1.25rem;
      }

      .accordion-inner ul li > a {
        padding-left: 3.5rem;
      }
    }

    .accordion-content {
      color: $link-color;
      background: rgba(0, 0, 0, 0.07);

      .accordion-inner {
        padding: 0 !important;
      }
    }

    .accordion-inner ul li {
      list-style: none;

      & > a {
        padding-left: 2.5rem;
        transition: all .25s;
      }
    }

    .accordion-inner ul li > a,
    .left-menu-item li > a {
      display: block;
      padding: .5rem 0 .5rem 2rem;
      cursor: pointer;
      text-decoration: none;
    }

    .left-menu-item li > a {
      padding-left: .75rem;
      white-space: nowrap;
    }

    li a.active {
      background: rgba(0,0,0,.12);
    }

    li a cite,
    li a em {
      font-style: normal;
    }

    li a em {
      padding-left: .25rem;
      font-size: .6rem;
    }

    .left-scroll {
      width: 100%;
      @include position(absolute, 0, '', 0, 0);
    }

    .scroll-box {
      @include position(absolute, 0, 0, 0, 0);
    }
  }

  .main-container {
    & > .row + blockquote {
      margin-top: 1rem;
    }
  }

  .free-table-cell-inner {
    font-size: .7rem;
  }

  [class^=col-] {
    margin-bottom: .75rem;
  }

  .free-demo-board,
  .free-card-board {
    position: relative;
  }

  .free-demo-board:not(:first-child) {
    margin-top: .75rem;
  }

  .free-card-board {
    margin-bottom: 1rem;
    & > h3.free-toolbar {
      margin: 0;
      position: absolute;
      top: .65rem;
      left: .75rem;
      font-weight: bold;
      font-size: .85rem;
      color: #333;
    }
  }

  .free-demo-row {
    margin-top: 1rem;

    & > p {
      margin-bottom: 1rem;
    }
  }

  .free-ul-padding {
    -webkit-padding-start: 1.5rem;
    -moz-padding-start: 1.5rem;
  }

  h2.free-head-title {
    font-weight: 600;
    font-size: 1rem;
  }

  h3.free-title {
    font-weight: 500;
  }

  .toggle-btn free-hamburge {
    display: inline-flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;

    span {
      background: #fff;
    }
  }

  .navbar-envelope {
    .free-list-item {
      padding: 0 .25rem;
    }

    free-dropdown {
      height: 2rem !important;

      .free-dropdown-header f-header {
        padding: 0 .6rem !important;

      }

      .btn {
        &:before {
          transform: scale(0) !important;
        }
      }
    }

    & > a {
      padding: 0 !important;
    }
  }

  free-sidenav {
    .free-sidenav-wrapper {
      padding: 0 .5rem;
    }

    .row {
      padding: .75rem .5rem;
    }
    h4 {
      display: flex;
      justify-content: center;
      padding: .5rem 0;
      margin: 0;
      border-bottom: 1px solid #d9d9d9;
    }
    .theme-color-list {
      @include flexbox;
      overflow: hidden;
      flex-wrap: wrap;

      .theme-color-item {
        @include flexbox;
        list-style: none;
        margin: 0 .5rem .5rem 0;
        height: 1.8rem;
        width: 1.8rem;
        color: #fff;
        border-radius: 50%;
        flex: 0 1 auto;
        cursor: pointer;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: all .25s;
        text-transform: capitalize;

        * {
          text-align: center;
          line-height: 22px;
        }

        &:hover {
          @include boxShadow;
          transform: scale(.8);
        }
      }
    }
  }

  free-tab h4 {
    margin: .5rem 0;
  }

  .search-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    filter: alpha(opacity=0);
    height: $topMenuHeight;
    z-index: 9501;
    transition: all .3s;
    transform: translate(0, -100%);

    .search-input {
      position: relative;
      display: flex;
      margin: .5rem 0;
      align-items: center;

      free-icon {
        position: absolute;
        left:0;
        top: 0;
        width: 2rem;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #fff;
        line-height: 2rem;
      }

      input {
        border: 0;
        height: 2rem;
        padding: 0 .5rem 0 2rem;
        font-size: .9rem;
        width: 25rem;
        border-radius: 2px;
        color: #fff;
        background-color: rgba(255,255,255,0.26);

        &:focus {
          background-color: rgba(255,255,255,0.4)
        }
      }
    }

    &.open {
      opacity: 1;
      filter: alpha(opacity=100);
      transform: translate(0, 0);
    }

    .search-box-close {
      position: absolute;
      right: 1rem;
      top: .5rem;
      width: 2rem;
      height: 2rem;
      cursor: pointer;
      font-size: .9rem;
      display: flex;
      align-items: center;
      justify-content: center;
      color: rgba(0,0,0,0.38);

      &:before {
        content: "";
        position: absolute;
        top:0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.15);
        color: #000;
        border-radius: 50%;
        transform: scale(0);
        transition: all .25s;
      }

      &:hover:before {
        transform: scale(1);
      }
    }
  }

  .color-white {
    color: #fff;
  }

  .left-menu {
    background: #fff !important;
    box-shadow: 6px 0 6px rgba(0, 0, 0, .1);
    z-index: 100;

    li a em {
      color: #666;
    }

    .left-menu-item li a,
    .accordion-toggle,
    .accordion-inner ul li > a {
      color: #262626;
    }
  }

  .top-menu {
    .hamburge-line span,
    .navbar-header .search-form {
      background: #fff;
    }

    button:not(.free-language) {
      background: transparent;
      color: #fff !important;
    }

    button.free-language {
      margin-left: 120px;
      box-shadow: none;
    }
  }

  .free-scroll-thumb {
    background: rgba(0, 0, 0, 0.298039);
  }

  .aside-header li a {
    color: #fff;
  }

  .free-theme-setting {
    box-shadow: 0 0 .5rem #fff;
  }

  .theme-setting {
    position: absolute;
    right: 0;
    top: 3rem;
    font-size: 18px;
    width: 2rem;
    height: 2rem;
    z-index: 9980;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    background: #fff;
    border-radius: 0 0 0 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
    transition: all .3s linear;

    &.open {
      right: 12.5rem;
    }
  }

  .navbar-header .navbar-header-right {

    .free-dropdown-header {
      &.active,
      &:active,
      &:hover {
        background: transparent !important;

        &:before {
          content: "";
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background: rgba(0, 0, 0, .1);
        }
      }
    }
  }

  .free-panel-inner h4 {
    padding: 20px 0;
  }

  .deviceswitcher-menu {
    flex: 1;
    li {
      display: inline-block;
      width: 33.3333%;
      margin-left: 2%;
      height: 50px;
      font-size: 30px;
      border: 1px solid #DDD;
      border-radius: 2px;
      text-align: center;
      line-height: 50px;
      vertical-align: top;
      cursor: pointer;

      &:nth-child(2) {
        font-size: 50px;
      }

      &:hover {
        background: #eee;
      }
    }
  }

  .back-top {
    position: fixed;
    bottom: 10px;
    right: 20px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    background: #fff;
    border-radius: 100%;
    box-shadow: 1px 0 10px 1px rgba(0,0,0,0.3);
    transition: all .2s;
    &:hover {
      background: #eee;
    }
  }

//  mobile
  .free-demo-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 11000;
    background: rgba(0,0,0,.5);

    & > span {
      position: absolute;
      right: 50px;
      top: 50px;
      width: 30px;
      height: 30px;
      color: #333;
      background: #fff;
      border-radius: 100%;
      text-align: center;
      line-height: 30px;
      font-size: 18px;
      cursor: pointer;

      &:hover {
        background: #eee;
      }
    }

    &.active {
      display: block;
    }
  }
  .review-phone {
    width: 326px;
    height: 614px;
    position: absolute;
    left: 50%;
    top: -2px;
    background: #fff;
    padding: 0 3px;
    border-radius: 30px;
    transition: all 1s;
    box-shadow: -4px 4px 0 3px #999;
    transform: translate(-50%, 0);
  }

  .phone-nav-line {
    width: 30px;
    height: 8px;
    border-radius: 5px;
    position: absolute;
    left: 50%;
    margin-left: -15px;
    top: 5px;
    background: #5B5B5B
  }

  .phone-header {
    margin-top: 30px;
    height: 50px
  }

  .phone-nav {
    height: 50px;
    background: #333;
    position: relative;
    color: #fff
  }

  .phone-nav-dian {
    font-size: 25px;
    position: absolute;
    top: 0;
    line-height: 0;
    left: 5px
  }

  .phone-battery {
    position: absolute;
    right: 6px;
    top: 2px;
    color: #fff;
    font-size: 10px
  }

  .phone-container {
    width: 320px;
    height: 504px;
    background: #ccc;
    position: relative;
    border: 1px solid #d9d9d9
  }

  .phone-footer {
    height: 30px
  }

  .page-background {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    background-size: 100% 100%;
    background-repeat: no-repeat
  }
}

@media (min-width: 768px) {

}

@media (min-width: 992px) {

}

@media (min-width: 1200px) {

}

@media (max-width: 900px) {
  :host /deep/ {
    .left-menu {
      left: 0;
    }
    .main-layout-container {
      left: 0;
    }
    .aside-header {
      width: auto;
    }

    .top-menu button.free-language {
      margin-left: 0;
    }

    .search-box .search-input input {
      width: 85%;
    }

    .search-box .search-box-close {
      right: .3rem;
    }

    .free-card-board > h3.free-toolbar {
      position: relative;
      top:0;
      padding: 10px 0;
    }
  }
  :host-context(.free-mini) {
    .left-menu,
    .main-layout-container {
      left: -#{$leftMenuWidth};
    }
  }

  .navbar-header-right li:not(:first-child):not(:last-child) {
    display: none;
  }
}

.free-theme-list {
  display: flex;
  width: 6rem;
  flex-wrap: wrap;

  .free-theme-option {
    list-style: none;
    width: 33.3333%;
    padding: .5rem .25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;

    &:hover {
      background: #eee;
    }
    span {
      display: block;
      border-radius: 50%;
      width: 1rem;
      height: 1rem;
    }
  }
}
